用户openid转换
将另一个应用的用户openid转换为指定appid应用下的用户openid
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 用户openid |
json | object | 声明请求的JSON 数据结构 |
appid | string | 目标应用的appid |
php
$instance->v3->express->users->_openid_->transform->postAsync([
'openid' => 'xsd3434454567676',
'json' => [
'appid' => 'wxaaaa1a123b456c7d',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/express/users/{openid}/transform')->postAsync([
'openid' => 'xsd3434454567676',
'json' => [
'appid' => 'wxaaaa1a123b456c7d',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/express/users/{openid}/transform']->postAsync([
'openid' => 'xsd3434454567676',
'json' => [
'appid' => 'wxaaaa1a123b456c7d',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->express->users->_openid_->transform->post([
'openid' => 'xsd3434454567676',
'json' => [
'appid' => 'wxaaaa1a123b456c7d',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/express/users/{openid}/transform')->post([
'openid' => 'xsd3434454567676',
'json' => [
'appid' => 'wxaaaa1a123b456c7d',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/express/users/{openid}/transform']->post([
'openid' => 'xsd3434454567676',
'json' => [
'appid' => 'wxaaaa1a123b456c7d',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
openid | string | 转换后的openid |
参阅 官方文档